import type { IContentConfig } from '@/components/page-content/type';

const contentConfig: IContentConfig = {
  header: {
    title: '用户列表',
    btnText: '新建用户'
  },
  pageName: 'users',
  tableData: [
    { type: 'selection', label: '选择', prop: 'selection' },
    { type: 'index', label: '序号', prop: 'index', width: 80 },
    { type: 'normal', label: '用户名', prop: 'name', width: 180 },
    { type: 'normal', label: '真实姓名', prop: 'realname', width: 180 },
    { type: 'normal', label: '手机号码', prop: 'cellphone', width: 180 },
    { type: 'custom', label: '状态', prop: 'enable', width: 180, slotName: 'status' },
    { type: 'timer', label: '创建时间', prop: 'createAt' },
    { type: 'timer', label: '更新时间', prop: 'updateAt' },
    { type: 'handler', label: '操作', width: 180, prop: 'handler' }
  ]
};

export default contentConfig;
